﻿@using DocProcessingWorkflow.Models.MediaStock
@model IEnumerable<MediaStockViewModel>

<table id="assignedItems" class="table">
  <thead>
    <tr>
      <th class="col-md-1"></th>
      <th class="col-md-1">Station Number</th>
      <th class="col-md-1">Code</th>
      <th class="col-md-2">Description</th>
      <th class="col-md-1">Weight</th>
      <th class="col-md-1">Size X</th>
      <th class="col-md-1">Size Y</th>
      <th class="col-md-1">Facing</th>
      <th class="col-md-1">Colour</th>
      <th class="col-md-1"></th>
    </tr>
  </thead>
  @if (Model.Any())
  {
    foreach (MediaStockViewModel mediaStock in Model)
    {
      <tr class="mediastockitem" data-mediastockid="@mediaStock.MediaStockId">
        <td />
        <td class="stationNumber">@mediaStock.StationNumber</td>
        <td class="code">@mediaStock.Code</td>
        <td class="description">@mediaStock.Description</td>
        <td>@mediaStock.Weight</td>
        <td>@mediaStock.SizeX</td>
        <td>@mediaStock.SizeY</td>
        <td>@mediaStock.Facing</td>
        <td>@mediaStock.Colour</td>
        <td>
          <div class="btn-group">
            <button type="button" class="btn btn-bbosaction dropdown-toggle" data-toggle="dropdown">Actions <span class="caret"></span></button>
            <ul class="dropdown-menu" role="menu">
              <li><a class="removeMediaItem" href="#">Remove Item</a></li>
            </ul>
          </div>
        </td>
      </tr>
    }
  }
  else
  {
    <td>No items</td>
  }
</table>